import { Load } from "./Load";

export default {
    install(Vue, opts) {
        const load = new Load(opts),
            inserted = load.inserted.bind(load),
            unbind = load.unbind.bind(load);

        Vue.directive('lazy-img', {
            inserted,
            unbind
        });
    }
};
